# views.py :路由 + 视图函数

from flask import Blueprint
from .models import *

# 蓝图
blue = Blueprint('user', __name__, url_prefix='/app')
blue2 = Blueprint('product', __name__, url_prefix='/app2')

@blue.route('/')
def index():
    return 'index'


@blue2.route('/goods')
def goods():
    return 'goods'